import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex) // vue的插件机制

// Vuex.Store 构造器选项
const store = new Vuex.Store({
    state: {
		userName:'',
		userRealId:''
    },
	mutations:{
		saveUserRealId(state,userRealId){
			console.log(userRealId);
			state.userRealId= userRealId
		},
		saveUserName(state,userName){
			console.log(userName);
			state.userName = userName
		}
	}
})

export default store
